package com.itheima.demo6_this关键字.p03构造方法;

import java.util.zip.ZipInputStream;

public class Test {
    public static void main(String[] args) {
        Zi zi = new Zi();
    }
}
class Fu{
    public Fu(){
        System.out.println("Fu 无参构造");
    }
}
class Zi extends Fu{
    int num;
    public Zi() {
        this(10);
        System.out.println("Zi 无参构造");
    }

    public Zi(int num) {
        this.num = num;
        System.out.println("Zi 有参构造");
    }
}